<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TImageAnimation类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_image_animation.html">TImageAnimation</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_image_animation-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TImageAnimation类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TImageAnimation 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_image_animation.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a3ddad555131ece1bff79cf3b747cf4db"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a3ddad555131ece1bff79cf3b747cf4db">TImageAnimation</a> (long nativeObj)</td></tr>
<tr class="separator:a3ddad555131ece1bff79cf3b747cf4db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf79c632762fd1d56fdb2935960bad10"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#acf79c632762fd1d56fdb2935960bad10">setLoop</a> (boolean loop)</td></tr>
<tr class="separator:acf79c632762fd1d56fdb2935960bad10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf5e17f3c22f3d971b76db1fd8c6921d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#abf5e17f3c22f3d971b76db1fd8c6921d">setImage</a> (String image)</td></tr>
<tr class="separator:abf5e17f3c22f3d971b76db1fd8c6921d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8242a1aa8c917b323e61879544a4e7cd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a8242a1aa8c917b323e61879544a4e7cd">setInterval</a> (int interval)</td></tr>
<tr class="separator:a8242a1aa8c917b323e61879544a4e7cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f9380d21e707787d726590d9630fd46"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a3f9380d21e707787d726590d9630fd46">setDelay</a> (int delay)</td></tr>
<tr class="separator:a3f9380d21e707787d726590d9630fd46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb59e85549e37eba6c5d1c8ea24d0c98"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#abb59e85549e37eba6c5d1c8ea24d0c98">setAutoPlay</a> (boolean auto_play)</td></tr>
<tr class="separator:abb59e85549e37eba6c5d1c8ea24d0c98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42a578bb017261e6459f10ca323b0b41"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a42a578bb017261e6459f10ca323b0b41">setSequence</a> (String sequence)</td></tr>
<tr class="separator:a42a578bb017261e6459f10ca323b0b41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab657fd9f67e706c90a57df4b7bfd3e91"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#ab657fd9f67e706c90a57df4b7bfd3e91">setRangeSequence</a> (int start_index, int end_index)</td></tr>
<tr class="separator:ab657fd9f67e706c90a57df4b7bfd3e91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af030fdaa9115e96909fabbaf39029205"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#af030fdaa9115e96909fabbaf39029205">play</a> ()</td></tr>
<tr class="separator:af030fdaa9115e96909fabbaf39029205"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a654282de4b45d0d5a10e03bd1100f97a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a654282de4b45d0d5a10e03bd1100f97a">stop</a> ()</td></tr>
<tr class="separator:a654282de4b45d0d5a10e03bd1100f97a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab545ab833404a2643325887839c6b029"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#ab545ab833404a2643325887839c6b029">pause</a> ()</td></tr>
<tr class="separator:ab545ab833404a2643325887839c6b029"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab1168e0e1f4fe62ce8761f1b0217687"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#aab1168e0e1f4fe62ce8761f1b0217687">next</a> ()</td></tr>
<tr class="separator:aab1168e0e1f4fe62ce8761f1b0217687"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a882e5c283d595387ef1132a4b0af3bf6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a882e5c283d595387ef1132a4b0af3bf6">setFormat</a> (String format)</td></tr>
<tr class="separator:a882e5c283d595387ef1132a4b0af3bf6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8b55e0f109e25ff36d0eae03a0cd919d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a8b55e0f109e25ff36d0eae03a0cd919d">setUnloadAfterPaint</a> (boolean unload_after_paint)</td></tr>
<tr class="separator:a8b55e0f109e25ff36d0eae03a0cd919d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbb809c1796566533c79612c90c77c46"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#acbb809c1796566533c79612c90c77c46">setReverse</a> (boolean reverse)</td></tr>
<tr class="separator:acbb809c1796566533c79612c90c77c46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedddffd5d545716acf172d8543bcb55e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#aedddffd5d545716acf172d8543bcb55e">setShowWhenDone</a> (boolean show_when_done)</td></tr>
<tr class="separator:aedddffd5d545716acf172d8543bcb55e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a838b0c8bc9a389d4dd9f83550b1872d1"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a838b0c8bc9a389d4dd9f83550b1872d1">isPlaying</a> ()</td></tr>
<tr class="separator:a838b0c8bc9a389d4dd9f83550b1872d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb0496f21041e80c841e7d328c05fb26"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#afb0496f21041e80c841e7d328c05fb26">getImage</a> ()</td></tr>
<tr class="separator:afb0496f21041e80c841e7d328c05fb26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2b1d48659fba3281aed6ff0dd4c9cba"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#ae2b1d48659fba3281aed6ff0dd4c9cba">getSequence</a> ()</td></tr>
<tr class="separator:ae2b1d48659fba3281aed6ff0dd4c9cba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:addf56f96d6fc21ac0c5c14c733c8a01f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#addf56f96d6fc21ac0c5c14c733c8a01f">getStartIndex</a> ()</td></tr>
<tr class="separator:addf56f96d6fc21ac0c5c14c733c8a01f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe86bd87174e8c1608acef3405de4388"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#abe86bd87174e8c1608acef3405de4388">getEndIndex</a> ()</td></tr>
<tr class="separator:abe86bd87174e8c1608acef3405de4388"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69dccdeb96e5d99f3f7a4389119d876c"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a69dccdeb96e5d99f3f7a4389119d876c">getReverse</a> ()</td></tr>
<tr class="separator:a69dccdeb96e5d99f3f7a4389119d876c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba9ba1cb2030d7fc8847caaf7efce18b"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#aba9ba1cb2030d7fc8847caaf7efce18b">getLoop</a> ()</td></tr>
<tr class="separator:aba9ba1cb2030d7fc8847caaf7efce18b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64fb47d06a7ab723e998b58409489a11"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a64fb47d06a7ab723e998b58409489a11">getAutoPlay</a> ()</td></tr>
<tr class="separator:a64fb47d06a7ab723e998b58409489a11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a824457967e05dfdaa03ab48ef545c50f"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a824457967e05dfdaa03ab48ef545c50f">getUnloadAfterPaint</a> ()</td></tr>
<tr class="separator:a824457967e05dfdaa03ab48ef545c50f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a0eebaa6a4626c9ca202bbe042e8bcb"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a6a0eebaa6a4626c9ca202bbe042e8bcb">getFormat</a> ()</td></tr>
<tr class="separator:a6a0eebaa6a4626c9ca202bbe042e8bcb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7705da4f3c3b7bc15dc2ec40aa56d7d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#ad7705da4f3c3b7bc15dc2ec40aa56d7d">getInterval</a> ()</td></tr>
<tr class="separator:ad7705da4f3c3b7bc15dc2ec40aa56d7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8edc936eaf072032f9874a0da31e6f30"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a8edc936eaf072032f9874a0da31e6f30">getDelay</a> ()</td></tr>
<tr class="separator:a8edc936eaf072032f9874a0da31e6f30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2854f4624238de8a8c89e878e83be450"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a2854f4624238de8a8c89e878e83be450">getShowWhenDone</a> ()</td></tr>
<tr class="separator:a2854f4624238de8a8c89e878e83be450"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a5a8b9102aa3f983d2f14cb3d07e466d8"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_image_animation.html">TImageAnimation</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#a5a8b9102aa3f983d2f14cb3d07e466d8">cast</a> (long nativeObj)</td></tr>
<tr class="separator:a5a8b9102aa3f983d2f14cb3d07e466d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af3c0f03012160b5e169016e75c88d67e"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#af3c0f03012160b5e169016e75c88d67e">create</a> (TWidget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:af3c0f03012160b5e169016e75c88d67e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4ed2677606260e2f8729c58eaa1e174"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_image_animation.html">TImageAnimation</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_image_animation.html#ad4ed2677606260e2f8729c58eaa1e174">cast</a> (TWidget widget)</td></tr>
<tr class="separator:ad4ed2677606260e2f8729c58eaa1e174"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>图片动画控件，指定一个图片前缀，依次显示指定序列的图片，从而形成动画效果。</p>
<p>图片序列可以用sequence指定，也可以用start_index和end_index指定一个范围。</p>
<p>image_animation_t是widget\_t的子类控件，widget_t的函数均适用于image_animation_t控件。</p>
<p>在xml中使用"image\_animation"标签创建图片动画控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">image_animation</span> <span class="keyword">image</span>=<span class="stringliteral">&quot;ani&quot;</span> <span class="keyword">start_index</span>=<span class="stringliteral">&quot;1&quot;</span> <span class="keyword">end_index</span>=<span class="stringliteral">&quot;9&quot;</span> <span class="keyword">auto_play</span>=<span class="stringliteral">&quot;true&quot;</span> <span class="keyword">interval</span>=<span class="stringliteral">&quot;50&quot;</span></div>
<div class="line">*<span class="keyword">delay</span>=<span class="stringliteral">&quot;100&quot;</span>/&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/design/default/ui/image_animation.xml">image_animation.xml</a></p>
<p>在c代码中使用函数image_animation_create创建图片动画控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考： </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/image_animation.c">image_animation demo</a></p>
<p>可用通过style来设置控件的显示风格，如背景颜色和边框等等，不过一般情况并不需要。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a3ddad555131ece1bff79cf3b747cf4db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ddad555131ece1bff79cf3b747cf4db">&#9670;&nbsp;</a></span>TImageAnimation()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageAnimation.TImageAnimation </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a5a8b9102aa3f983d2f14cb3d07e466d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5a8b9102aa3f983d2f14cb3d07e466d8">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_image_animation.html">TImageAnimation</a> awtk.TImageAnimation.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<a id="ad4ed2677606260e2f8729c58eaa1e174"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad4ed2677606260e2f8729c58eaa1e174">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_image_animation.html">TImageAnimation</a> awtk.TImageAnimation.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为image_animation对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>image_animation对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>image_animation对象。 </dd></dl>

</div>
</div>
<a id="af3c0f03012160b5e169016e75c88d67e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af3c0f03012160b5e169016e75c88d67e">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TWidget awtk.TImageAnimation.create </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建image_animation对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a64fb47d06a7ab723e998b58409489a11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64fb47d06a7ab723e998b58409489a11">&#9670;&nbsp;</a></span>getAutoPlay()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TImageAnimation.getAutoPlay </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否自动播放。 </p>

</div>
</div>
<a id="a8edc936eaf072032f9874a0da31e6f30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8edc936eaf072032f9874a0da31e6f30">&#9670;&nbsp;</a></span>getDelay()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TImageAnimation.getDelay </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>自动播放时延迟播放的时间(毫秒)。 </p>

</div>
</div>
<a id="abe86bd87174e8c1608acef3405de4388"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe86bd87174e8c1608acef3405de4388">&#9670;&nbsp;</a></span>getEndIndex()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TImageAnimation.getEndIndex </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>图片结束序数。 </p>

</div>
</div>
<a id="a6a0eebaa6a4626c9ca202bbe042e8bcb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a0eebaa6a4626c9ca202bbe042e8bcb">&#9670;&nbsp;</a></span>getFormat()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TImageAnimation.getFormat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>索引到图片名转换时的格式，缺省为"%s%d"。 </p>

</div>
</div>
<a id="afb0496f21041e80c841e7d328c05fb26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb0496f21041e80c841e7d328c05fb26">&#9670;&nbsp;</a></span>getImage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TImageAnimation.getImage </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>图片名称的前缀。 </p>

</div>
</div>
<a id="ad7705da4f3c3b7bc15dc2ec40aa56d7d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7705da4f3c3b7bc15dc2ec40aa56d7d">&#9670;&nbsp;</a></span>getInterval()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TImageAnimation.getInterval </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>每张图片播放的时间(毫秒)。 </p>

</div>
</div>
<a id="aba9ba1cb2030d7fc8847caaf7efce18b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba9ba1cb2030d7fc8847caaf7efce18b">&#9670;&nbsp;</a></span>getLoop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TImageAnimation.getLoop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否循环播放。 </p>

</div>
</div>
<a id="a69dccdeb96e5d99f3f7a4389119d876c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69dccdeb96e5d99f3f7a4389119d876c">&#9670;&nbsp;</a></span>getReverse()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TImageAnimation.getReverse </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否倒序播放。 </p>

</div>
</div>
<a id="ae2b1d48659fba3281aed6ff0dd4c9cba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae2b1d48659fba3281aed6ff0dd4c9cba">&#9670;&nbsp;</a></span>getSequence()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TImageAnimation.getSequence </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>播放的序列，字符可选值为数字和英文大小写字母，字符可以重复。如：0123456789或者123123abcd。 </p>

</div>
</div>
<a id="a2854f4624238de8a8c89e878e83be450"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2854f4624238de8a8c89e878e83be450">&#9670;&nbsp;</a></span>getShowWhenDone()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TImageAnimation.getShowWhenDone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>结束后是否继续显示最后一帧。 </p>

</div>
</div>
<a id="addf56f96d6fc21ac0c5c14c733c8a01f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addf56f96d6fc21ac0c5c14c733c8a01f">&#9670;&nbsp;</a></span>getStartIndex()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TImageAnimation.getStartIndex </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>图片起始序数。 </p>

</div>
</div>
<a id="a824457967e05dfdaa03ab48ef545c50f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a824457967e05dfdaa03ab48ef545c50f">&#9670;&nbsp;</a></span>getUnloadAfterPaint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TImageAnimation.getUnloadAfterPaint </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>绘制完成后unload图片，以释放内存空间。 </p>

</div>
</div>
<a id="a838b0c8bc9a389d4dd9f83550b1872d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a838b0c8bc9a389d4dd9f83550b1872d1">&#9670;&nbsp;</a></span>isPlaying()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TImageAnimation.isPlaying </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>判断是否在播放。</p>
<dl class="section return"><dt>返回</dt><dd>返回TRUE表示是，否则表示否。 </dd></dl>

</div>
</div>
<a id="aab1168e0e1f4fe62ce8761f1b0217687"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab1168e0e1f4fe62ce8761f1b0217687">&#9670;&nbsp;</a></span>next()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.next </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>手动切换到下一张图片。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab545ab833404a2643325887839c6b029"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab545ab833404a2643325887839c6b029">&#9670;&nbsp;</a></span>pause()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.pause </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>暂停。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af030fdaa9115e96909fabbaf39029205"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af030fdaa9115e96909fabbaf39029205">&#9670;&nbsp;</a></span>play()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.play </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>播放。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="abb59e85549e37eba6c5d1c8ea24d0c98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb59e85549e37eba6c5d1c8ea24d0c98">&#9670;&nbsp;</a></span>setAutoPlay()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.setAutoPlay </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>auto_play</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置是否自动播放。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">auto_play</td><td>是否自动播放。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3f9380d21e707787d726590d9630fd46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f9380d21e707787d726590d9630fd46">&#9670;&nbsp;</a></span>setDelay()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.setDelay </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>delay</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置延迟播放时间(仅适用于自动播放)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">delay</td><td>延迟播放时间(毫秒)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a882e5c283d595387ef1132a4b0af3bf6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a882e5c283d595387ef1132a4b0af3bf6">&#9670;&nbsp;</a></span>setFormat()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.setFormat </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>format</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置生成图片名的格式。</p>
<p>XXX:生成图片名时，第一个参数是图片名前缀，第二个是序数，只能在此前提下设置格式。</p>
<div class="fragment"><div class="line">*<span class="keyword">const</span> <span class="keywordtype">char</span>* format = image_animation-&gt;format ? image_animation-&gt;format : <span class="stringliteral">&quot;%s%d&quot;</span>;</div>
<div class="line">*tk_snprintf(name, TK_NAME_LEN, format, image_animation-&gt;image, image_animation-&gt;index);</div>
</div><!-- fragment --><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">format</td><td>格式。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="abf5e17f3c22f3d971b76db1fd8c6921d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf5e17f3c22f3d971b76db1fd8c6921d">&#9670;&nbsp;</a></span>setImage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.setImage </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>image</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置图片前缀。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">image</td><td>图片前缀。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8242a1aa8c917b323e61879544a4e7cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8242a1aa8c917b323e61879544a4e7cd">&#9670;&nbsp;</a></span>setInterval()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.setInterval </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>interval</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置播放间隔时间。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">interval</td><td>间隔时间(毫秒)。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="acf79c632762fd1d56fdb2935960bad10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf79c632762fd1d56fdb2935960bad10">&#9670;&nbsp;</a></span>setLoop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.setLoop </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>loop</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置是否循环播放。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">loop</td><td>是否循环播放。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ab657fd9f67e706c90a57df4b7bfd3e91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab657fd9f67e706c90a57df4b7bfd3e91">&#9670;&nbsp;</a></span>setRangeSequence()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.setRangeSequence </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>start_index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>end_index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置播放序列。比如image为"fire"，start_index为0, end_index为99, 将依次播放"fire0", ..., "fire99"。</p>
<p>若指定的图片不存在，则重复上一张图片。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">start_index</td><td>图片起始序数。 </td></tr>
    <tr><td class="paramname">end_index</td><td>图片结束序数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="acbb809c1796566533c79612c90c77c46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbb809c1796566533c79612c90c77c46">&#9670;&nbsp;</a></span>setReverse()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.setReverse </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>reverse</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置是否倒序播放。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">reverse</td><td>是否倒序播放。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a42a578bb017261e6459f10ca323b0b41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42a578bb017261e6459f10ca323b0b41">&#9670;&nbsp;</a></span>setSequence()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.setSequence </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>sequence</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置播放序列。比如image为"fire"，sequence为"12223", 将依次播放"fire1", "fire2", "fire2", "fire2", "fire3"。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sequence</td><td>播放序列。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aedddffd5d545716acf172d8543bcb55e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedddffd5d545716acf172d8543bcb55e">&#9670;&nbsp;</a></span>setShowWhenDone()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.setShowWhenDone </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>show_when_done</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置结束播放后是否保持显示最后一帧。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">show_when_done</td><td>是否继续显示最后一帧。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8b55e0f109e25ff36d0eae03a0cd919d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8b55e0f109e25ff36d0eae03a0cd919d">&#9670;&nbsp;</a></span>setUnloadAfterPaint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.setUnloadAfterPaint </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>unload_after_paint</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置绘制完成后unload图片，以释放内存空间。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">unload_after_paint</td><td>是否绘制完成后unload图片。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a654282de4b45d0d5a10e03bd1100f97a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a654282de4b45d0d5a10e03bd1100f97a">&#9670;&nbsp;</a></span>stop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TImageAnimation.stop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>停止(并重置index为-1)。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TImageAnimation.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
